#ifndef QUIZ_WIDGET_H
#define QUIZ_WIDGET_H

#include "quizwidget.h"

/**
 * A QuizWidget which displays icons for the phrases instead of text.
 * The user selects the icon which most accurately describes the
 * demonstration video.
 */
class QuizIconWidget : public QuizWidget {
	Q_OBJECT

public:
	QuizIconWidget(QWidget* parent = 0) : QuizWidget(parent) {}

	// override createButton() to display pictures instead of text
	virtual QAbstractButton* createButton(const Phrase* phrase);

	// override to use grid layout instead of box layout
	virtual QLayout* createOptionsLayout(const QList<QAbstractButton*> options);

private:
	static const int ICON_SIZE = 64;
};

#endif // QUIZ_WIDGET_H
